package com.ssm.util;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * Created by Lenovo on 2019-10-18.
 */

public class Math {
    private float result;
    public void add(int n1,int n2){
        result=n1+n2;
        System.out.println(result);
    }
    public void subtract(int n1,int n2){
        result=n1-n2;
        System.out.println(result);
    }

    public void mul(int n1,int n2){
        result=n1*n2;
        System.out.println(result);
    }
    public void dev(int n1,int n2){
        result=n1/n2;
        System.out.println(result);
    }
}
